import {ADD_Person} from "../constant";

export default function person_reducer(preState = [], action) {
    const {type, data} = action
    switch (type) {
        case ADD_Person:
            return [data,...preState]
        default:
            return preState
    }
}